package day10;

public class Demo02 {
    public static void main(String[] args) {
        int index = 0;
        System.out.println(index++%10);//0
        System.out.println(index++%10);//1
        System.out.println(index++%10);
        System.out.println(index++%10);
        System.out.println(index++%10);
        System.out.println(index++%10);
        System.out.println(index++%10);
        System.out.println(index++%10);
        System.out.println(index++%10);
        System.out.println(index++%10);//9
        System.out.println(index++%10);//0
        System.out.println(index++%10);//0
        System.out.println(index++%10);//1
        System.out.println(index++%10);
        System.out.println(index++%10);
        System.out.println(index++%10);
        System.out.println(index++%10);
        System.out.println(index++%10);
        System.out.println(index++%10);
        System.out.println(index++%10);
        System.out.println(index++%10);//9


    }
}
